#!/bin/bash
#SBATCH --partition=batch
#SBATCH --nodes=1             # Max is 1
#SBATCH --ntasks=5            # Max is 5 (1/8 of 2x 20 Intel Broadwell CPUs)
#SBATCH --cpus-per-task=2     # Max is 2 (hyper-threading is on)
#SBATCH --gres=gpu:1          # Max is 1 (1 single V100)
#SBATCH --time=4:00:00        # Max is 4 hours

module purge > /dev/null 2>&1
module load Core/gcc/8.4.0 gcc/8.4.0/openmpi/3.1.6 gcc/8.4.0/openblas/0.3.10-openmp gcc/8.4.0/eigen/3.3.7

export MYEXE=main.t
export OMP_PROC_BIND=true
export OMP_NUM_THREADS=5

mpirun -np 1 main.t > result_3.txt

